<%--
  Created by IntelliJ IDEA.
  User: 86135
  Date: 2023/3/27
  Time: 14:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<%
    String repeat = (String)session.getAttribute("backMsg");
        if (repeat!=null & repeat.equals("还书成功，按时归还，积分加10")){
%>
<script language="JavaScript">
    window.confirm("还书成功，按时归还，积分加10")
    window.location.href="${pageContext.request.contextPath}/user/showBorrowByUser"
</script>
<%} else if(repeat!=null & repeat.equals("还书成功，超出还书期限，信用等级由D降为E！")){
%>
<script language="JavaScript">
    window.confirm("还书成功，超出还书期限，信用等级由D降为E！")
    window.location.href="${pageContext.request.contextPath}/user/showBorrowByUser"
</script>
<%} else if(repeat!=null & repeat.equals("还书成功，超出还书期限，信用等级由C降为D！")){
%>
<script language="JavaScript">
    window.confirm("还书成功，超出还书期限，信用等级由C降为D！")
    window.location.href="${pageContext.request.contextPath}/user/showBorrowByUser"
</script>
<%} else if(repeat!=null & repeat.equals("还书成功，超出还书期限，信用等级由B降为C！")){
%>
<script language="JavaScript">
    window.confirm("还书成功，超出还书期限，信用等级由B降为C！")
    window.location.href="${pageContext.request.contextPath}/user/showBorrowByUser"
</script>
<%} else if(repeat!=null & repeat.equals("还书成功，超出还书期限，信用等级由A降为B！")){
%>
<script language="JavaScript">
    window.confirm("还书成功，超出还书期限，信用等级由A降为B！")
    window.location.href="${pageContext.request.contextPath}/user/showBorrowByUser"
</script>
<%} else{
%>
<script language="JavaScript">
    window.confirm("还书成功")
    window.location.href="${pageContext.request.contextPath}/user/showBorrowByUser"
</script>
<%}
%>
</body>
</html>
